
<?php
echo "<h3>".Araclar::yaz("Ödül Bilgisi","Reward Information")."</h3>";
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mezuniyet-bilgileri-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array(
            'enctype' => 'multipart/form-data'
     ),
)); ?>
<table width="100%">
	<tr>
		<td>
			<?php echo Araclar::yaz("Ödül TR","Reward TR"); ?>:
		</td>
		<td>
			<?php 
				echo CHtml::textArea("odul",$model->odul,array('cols'=>'70','rows'=>'1'));
			?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo Araclar::yaz("Odul EN","Reward EN"); ?>:
		</td>
		<td>
			<?php 
				echo CHtml::textArea("odul_en",$model->odul_en,array('cols'=>'70','rows'=>'1'));
			?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo Araclar::yaz("Kategorisi","Category"); ?>:
		</td>
		<td>
			<?php 
				$model_kategori = OdulKategori::model()->findAll();
				echo CHtml::dropDownList("odul_kategori_id", $model->odul_kategori_id, CHtml::listData($model_kategori, 'id', Araclar::yaz('kategori_adi','kategori_adi_en')))
			?>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<?php echo Araclar::yaz("Ödül Resmi","Reward Picture"); ?>:
		</td>
	</tr>	
	<tr>
		<td colspan="2">
			<?php
				echo "URL: ".CHtml::textArea("resim_url",$model->resim_url,array('cols'=>'70', 'rows'=>'1'));
				echo "<br />";
				echo Araclar::yaz('Dosya','File').": ".CHtml::fileField("resim_dosya");
				if(!empty($model->resim_url)){
					if(substr($model->resim_url,0,4)!="http"){
						echo "<br />".Araclar::yaz("Yüklü Dosya",'Uploaded File').": <a href='/cokluortam/odul/".$model->resim_url."'>";
						echo $model->resim_url;
						echo "</a> ";
						echo "&nbsp;&nbsp;&nbsp;";
						echo "<a href='";
						echo Yii::app()->createUrl("yonetici/odulguncelle", array(
							'id'=>$model->id,
							'resim_sil_id'=>$model->id,
						));
						echo "'>".Araclar::yaz("Dosyayı Sil",'Delete File')."</a>";
					}
				}
			
			?>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<?php
				echo CHtml::submitButton('Kaydet');
			?>
		</td>
	</tr>	
</table>
<?php
$this->endWidget();
?>